package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 小程序用户对象 fo_xcx_user
 * 
 * @author liuwp
 * @date 2023-03-01
 */
public class XcxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** appid */
    @Excel(name = "appid")
    private String appid;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** unionid */
    @Excel(name = "unionid")
    private String unionid;

    /** session_key */
    @Excel(name = "session_key")
    private String sessionKey;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 性别 */
    @Excel(name = "性别")
    private Integer gender;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 盐  预留 */
    @Excel(name = "盐  预留")
    private String salt;

    private String phone;

    private Boolean phone_is_verified;

    /** ext1 */
    @Excel(name = "ext1")
    private String ext1;

    /** ext2 */
    @Excel(name = "ext2")
    private String ext2;

    /** ext3 */
    @Excel(name = "ext3")
    private String ext3;

    private XcxRole active_role;

    private Long active_role_id;

    private String role_code;

    private List<Long> roleIds;

    private List<XcxRole> granted_role_set;

    private Long group_id;
    private Long organization_id;
    private Long is_verified;

    private String access;

    private Boolean hasPhone;

    private Integer invitesId;
    private String invitesName;

    public Integer getInvitesId() {
        return invitesId;
    }

    public void setInvitesId(Integer invitesId) {
        this.invitesId = invitesId;
    }

    public String getInvitesName() {
        return invitesName;
    }

    public void setInvitesName(String invitesName) {
        this.invitesName = invitesName;
    }

    public Boolean getHasPhone() {
        return hasPhone;
    }

    public void setHasPhone(Boolean hasPhone) {
        this.hasPhone = hasPhone;
    }

    public String getAccess() {
        return access;
    }

    public void setAccess(String access) {
        this.access = access;
    }

    public Long getIs_verified() {
        return is_verified;
    }

    public void setIs_verified(Long is_verified) {
        this.is_verified = is_verified;
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

    public Long getGroup_id() {
        return group_id;
    }

    public void setGroup_id(Long group_id) {
        this.group_id = group_id;
    }

    public Long getOrganization_id() {
        return organization_id;
    }

    public void setOrganization_id(Long organization_id) {
        this.organization_id = organization_id;
    }

    public String getRole_code() {
        return role_code;
    }

    public void setRole_code(String role_code) {
        this.role_code = role_code;
    }

    public List<XcxRole> getGranted_role_set() {
        return granted_role_set;
    }

    public void setGranted_role_set(List<XcxRole> granted_role_set) {
        this.granted_role_set = granted_role_set;
    }

    public Long getActive_role_id() {
        return active_role_id;
    }

    public void setActive_role_id(Long active_role_id) {
        this.active_role_id = active_role_id;
    }

    public Boolean getPhone_is_verified() {
        return phone_is_verified;
    }

    public void setPhone_is_verified(Boolean phone_is_verified) {
        this.phone_is_verified = phone_is_verified;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public XcxRole getActive_role() {
        return active_role;
    }

    public void setActive_role(XcxRole active_role) {
        this.active_role = active_role;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppid(String appid) 
    {
        this.appid = appid;
    }

    public String getAppid() 
    {
        return appid;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setUnionid(String unionid) 
    {
        this.unionid = unionid;
    }

    public String getUnionid() 
    {
        return unionid;
    }
    public void setSessionKey(String sessionKey) 
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }
    public void setSalt(String salt) 
    {
        this.salt = salt;
    }

    public String getSalt() 
    {
        return salt;
    }
    public void setExt1(String ext1) 
    {
        this.ext1 = ext1;
    }

    public String getExt1() 
    {
        return ext1;
    }
    public void setExt2(String ext2) 
    {
        this.ext2 = ext2;
    }

    public String getExt2() 
    {
        return ext2;
    }
    public void setExt3(String ext3) 
    {
        this.ext3 = ext3;
    }

    public String getExt3() 
    {
        return ext3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appid", getAppid())
            .append("openid", getOpenid())
            .append("unionid", getUnionid())
            .append("sessionKey", getSessionKey())
            .append("nickname", getNickname())
            .append("avatarUrl", getAvatarUrl())
            .append("gender", getGender())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("city", getCity())
            .append("createTime", getCreateTime())
            .append("loginTime", getLoginTime())
            .append("updateTime", getUpdateTime())
            .append("salt", getSalt())
            .append("ext1", getExt1())
            .append("ext2", getExt2())
            .append("ext3", getExt3())
            .toString();
    }
}
